-- CALC_BLACKSMITH_COST_SP

-- 计算工坊消耗的探索点
-- @param user      玩家对象
-- @param equipId   装备id
return function(user, equipId)
    local rank  = EquipM.query(equipId, "rank");
    local cost;
  
    if rank == 4 then
        cost = 500;
    elseif rank == 3 then
        cost = 150;
    elseif rank == 2 then
        cost = 80;
    else
        cost = 40;
    end

    cost = CombatM.getReduceAttrib(cost, "search_point");
    return cost;
end